#!/usr/bin/env bash
echo "------node version------"
node -v
echo "------workspace------"
workspace=$(pwd)
echo "$workspace"
echo "------gulp run------"
gulp
echo "------gulp finish------"
# shellcheck disable=SC2164
cd output_scm
# shellcheck disable=SC2035
rm -rf *.tar
echo "------tar run------"
tar -zcvf ./gateway-admin-ui.tar.gz *
echo "------tar finish------"
# shellcheck disable=SC2006
release=$(pwd)
echo "release $release"
echo "start web http://localhost/gateway-admin-ui/start/index.html"
echo "------copy to server------"
##rm -rf /c/Soft/nginx-1.19.2/html/gateway-admin-ui
##cp -r ./gateway-admin-ui /c/Soft/nginx-1.19.2/html/
echo "------copy to finish------"